import {mix} from "@/utils/mix";

export const linkButtonGenerate = (colorWeight) => {
  const { white, primary, success, danger, warning, info } = colorWeight;
  const colors = {primary, success, danger, warning, info};
  const result = {};

  Object.entries(colors).forEach(([key, color]) => {
    console.log(key, color)
    result[`--link-${key}-font-color-hover`] = mix(color, white, 80);
    result[`--link-${key}-font-color-disabled`] = mix(color, white, 50)
  })

  return result;
}
